import styled from 'styled-components'
import style, { px2rem } from '@/assets/global-style'

export const WriterWrapper = styled.div`
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100vw;
  .typewriter {
    display: inline-block;
    cursor: pointer;
    padding: 16px 8px;
    font-size: 18px;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    user-select: none;

    &::after {
      content: '|';
      display: inline-block;
      animation: blink 1s infinite;
    }

    // 闪烁效果
    @keyframes blink {
      0% {
        opacity: 1;
      }
      50% {
        opacity: 0;
      }
      100% {
        opacity: 1;
      }
    }
  }
`
